/**
 * Represents a D10 that is used in combat, etc.

 * 
 * @author Valerie
 *
 */

import java.util.Random;
public class Dice {
	private int value;
	Random rand;
	
	/**
	 * Constructor
	 * 
	 */
	public Dice(){
		rand = new Random();
		value=rand.nextInt(9)+1;
	}
	
	/**
	 * Rolls the die
	 * 
	 * @return The value that is rolled.
	 */
	public int roll(){
		value=rand.nextInt(9)+1;
		return value;
	}
	
	/**
	 * Gets the die's current value
	 * @return The value of the die.
	 */
	
	public int getValue(){
		return value;
		
	}
}
